package bhwz.seac3;

//import java.rmi.Remote;

public class RMIServerBLServiceManager {
	//private static final int PORT = 8657;

	public static void initServer() throws Exception {
		/*
		LocateRegistry.createRegistry(PORT);
		rebind(PlayerQueryBLService.class.getName(),
				new PlayerQueryBL(LocalBLServiceManager
						.getPerGamePlayerDataComputer(), DBServiceManager
						.getPlayerDBService(), DBServiceManager
						.getPlayerGameDataDBService(), DBServiceManager
						.getPlayerActionPictureDBService(), DBServiceManager
						.getPlayerPortraitPictureDBService(), DBServiceManager
						.getPlayerCaculationDataDBService()));
		rebind(TeamQueryBLService.class.getName(),
				new TeamQueryBL(
						LocalBLServiceManager.getGameTeamDataComputer(),
						DBServiceManager.getTeamDBService(), DBServiceManager
								.getTeamGameDataDBService(), DBServiceManager
								.getTeamIconDBService()));
		rebind(MatchQueryBLService.class.getName(),
				new MatchQueryBL(DBServiceManager.getMatchDBService(),
						DBServiceManager.getPlayerMatchDBService(),
						DBServiceManager.geTeamMatchDBService(),
						DBServiceManager.getHotSpotDBService()));
		rebind(HotspotQueryBLService.class.getName(),new HotSpotQueryBL());
		*/
	}

	/*
	private static void rebind(String name, Remote remote) throws Exception {
		Naming.rebind("rmi://127.0.0.1:" + PORT + "/" + name, remote);
	}
	*/
}
